package com.xjtu.platform.security.mailFill.dao;


import com.xjtu.platform.security.mailFill.MailDto;
import org.apache.ibatis.annotations.*;

@Mapper
public interface MailDao {

    @Select("select code from user where user_id=#{user_id}")
    String getCode(String user_id);


    @Update("update user set email=#{email} where user_id=#{user_id}")
    void insertEmail(MailDto mailDto);

    @Update("update user set code=#{code} where user_id=#{user_id}")
    void insertCode(@Param("code") String code, @Param("user_id") String user_id);
}
